package com.songcha.module_home.ui.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.songcha.library_common.ui.view.CustomButton
import com.songcha.library_database_douyue.bean.BookSearchHistoryBean
import com.songcha.module_home.R

class SearchHistoryAdapter(list:MutableList<BookSearchHistoryBean>):BaseQuickAdapter<BookSearchHistoryBean,BaseViewHolder>(R.layout.home_item_search_history,list) {

    init {
        addChildClickViewIds(R.id.home_item_btn_search_history)
    }

    override fun convert(holder: BaseViewHolder, item: BookSearchHistoryBean) {
        holder.getView<CustomButton>(R.id.home_item_btn_search_history).apply {
            text=item.title
        }
    }
}